{% extends "base.html" %}

{% block title %}
    查看职位
{% endblock %}

{% block label %}
    查看职位
{% endblock %}

{% block contenter %}
<div class="row">
        <table class="table">
            <thead>
            <tr>
                <th>职位名称</th>
                <th>职位等级</th>
                <th>职位操作</th>
            </tr>
            </thead>
            <tbody>

            <tr>
                <td class="col-lg-4">财务部_职员</td>
                <td class="col-lg-4">1</td>
                <td class="col-lg-4">
                    <a class="btn btn-default" data-toggle="modal" data-target="#edit_modal">编辑</a>
                    <a class="btn btn-default" href="#">删除</a>
                </td>
            </tr>

            <tr>
                <td class="col-lg-4">财务部_主任</td>
                <td class="col-lg-4">2</td>
                <td class="col-lg-4">
                    <a class="btn btn-default" data-toggle="modal" data-target="#edit_modal">编辑</a>
                    <a class="btn btn-default" href="#">删除</a>
                </td>
            </tr>

            <tr>
                <td class="col-lg-4">财务部_部长</td>
                <td class="col-lg-4">3</td>
                <td class="col-lg-4">
                    <a class="btn btn-default" data-toggle="modal" data-target="#edit_modal">编辑</a>
                    <a class="btn btn-default" href="#">删除</a>
                </td>
            </tr>

            </tbody>
        </table>
    </div>
    <div class="modal" id="add_modal">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal"><span>&times;</span>
                    </button>
                    <h4>新增职位</h4>
                </div>
                <div class="modal-body">
                    <form action="./position.html" method="post">
                        <div class="form-group">
                            <label class="control-label">职位名称：</label>
                            <input class="form-control" type="text" name="name">
                        </div>
                        <div class="form-group">
                            <label class="control-label">职位等级：</label>
                            <input class="form-control" type="number" name="level">
                        </div>
                        <div class="form-group">
                            <button class="btn btn-primary btn-block">提交</button>
                        </div>
                    </form>
                </div>
                <!--
                <div class="modal-footer"></div>
                -->
            </div>
        </div>
    </div>
    <div class="modal" id="edit_modal">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal"><span>&times;</span>
                    </button>
                    <h4>编辑职位</h4>
                </div>
                <div class="modal-body">
                    <form action="./position.html" method="post">
                        <div class="form-group">
                            <label class="control-label">职位名称：</label>
                            <input class="form-control" type="text" name="name">
                        </div>
                        <div class="form-group">
                            <label class="control-label">职位等级：</label>
                            <input class="form-control" type="number" name="level">
                        </div>
                        <div class="form-group">
                            <button class="btn btn-primary btn-block">提交</button>
                        </div>
                    </form>
                </div>
                <!--
                <div class="modal-footer"></div>
                -->
            </div>
        </div>
    </div>
{% endblock %}